
#pragma once
#include "vn/StringBuilder.h"

void StringBuilderTest() {_test_func_;
	{
		StringBuilder a;
		Convert::ToString(1);
		Convert::ToString(2L);
		Convert::ToString(3LL);
		Convert::ToString(4U);
		Convert::ToString(5UL);
		Convert::ToString(6ULL);
		Convert::ToString(' ');
		Convert::ToString(L'ở');
		Convert::ToString(" trong ");
		Convert::ToString(L"kia có ");
		Convert::ToString(3.5);
		Convert::ToString(String(L" cân thịt"));

	}

	{
		StringBuilder a;
		a << 1;
		a << 2L;
		a << 3LL;
		a << 4U;
		a << 5UL;
		a << 6ULL;
		a << ' ';
		a << L'o';
		a << " trong ";
		a << L"kia co ";
		a << 3.5;
		a << String(L" can thit");

		assert(a.ToString() == String("123456 o trong kia co 3.5 can thit"));
	}
}
